import { ResultEnum } from '../../enums/httpEnum'

const goodsList = {
  current: 1,
  pages: 10,
  size: 10,
  total: 50,
  'records|50': [
    {
      authorityIdSet: ['123'],
      createBy: '',
      createTime: '@date',
      goodsDesc: '@cname',
      goodsName: '@cname',
      'id|+1': 1,
      isDelete: '',
      'packageNameSet|0-2': ['123', '123', '测试'],
      updateBy: '',
      updateTime: ''
    }
  ]
}

const goodsAuthList = [
  {
    appDescribe: '',
    appId: '13',
    appName: '数票通',
    appPlatform: 0,
    appStatus: 0,
    authorityList: [
      {
        authorityId: '1',
        authorityName: '系统管理',
        authorityType: 0,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '0',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '2',
        authorityName: '机构管理',
        authorityType: 0,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '1',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '3',
        authorityName: '角色管理',
        authorityType: 0,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '1',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '4',
        authorityName: '用户管理',
        authorityType: 0,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '1',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '5',
        authorityName: '新增',
        authorityType: 1,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '4',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '6',
        authorityName: '查看',
        authorityType: 1,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '4',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '7',
        authorityName: '编辑',
        authorityType: 1,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '4',
        sort: 0,
        updateDate: ''
      },
      {
        authorityId: '8',
        authorityName: '删除',
        authorityType: 1,
        createDate: '',
        functionUrl: '',
        parentAuthorityId: '4',
        sort: 0,
        updateDate: ''
      }
    ]
  }
]

const packageAllList = [
  {
    goodsCode: '1',
    goodsName: '测试1'
  },
  {
    goodsCode: '12321451213213',
    goodsName: '测试2'
  }
]

export default {
  goodsList,
  goodsAuthList,
  packageAllList
}
